Omit pragma once, be more conservative
Remove gettimeofday, maybe not needed

Just trying to make it build on windows....