fmath.h Windows fixes

Account for functions previously missing in MSVS, but now in MSVS >= 2013

Fixes #909.

This is just me consulting MSDN and making my best guess. I really need somebody who has MSVS 2013, and also MSVS prior to 2013, to confirm that they get clean builds with these changes.