Include time.h in the MemoryAlloc test

This is required to get the time() function. This fixes building
on older MSVC versions.