added trunc() when building with ms visual studio compiler

adding this fixes the install on windows problem.