Include time.h in the MemoryAlloc test

This is required to get the time() function. This fixes building
on older MSVC versions.
Merge pull request #468 from mstorsjo/include-time-h

Include time.h in the MemoryAlloc test