compile on win32

On mingw32, we need include <mmsystem.h> manually.