win64 compatibility for msvc9.0 (2008)

implementation of missing c99 and gcc specific functions called when
compiling with gfortran