The powf one is a common error that you can find elsewhere in this section via search. The other however, I'm not sure. That sounds like something you had edited.
Edit: actually you might need to check the min and max defines in the q_shared file(s).
*I thought that it was MIN and MAX in this code and that windows sdk uses min/max.*