Fix VS 2012 build (unsupported nearbyinf, truncf)
Remove compiler specific preprocessor directives
Merge pull request #534 from pgec/VS2012_build_fix

Fix VS 2012 build