use modf and modff libm functions for modf. helps #7076

frem+trunc turns out to be much slower than these.
Merge branch 'master' of github.com:JuliaLang/julia