Fixed more undefined Windows functions

gettimeofday -> clock
custom implementations of round and roundf (for now)