use MonoTime/Duration instead of clock() for higher precision when profiling the GC
also fix building with PRINTF_TO_FILE