added trunc() when building with ms visual studio compiler
Merge pull request #47 from matthiasg/master

added trunc() when building with ms visual studio compiler