For compiling in Windows with MSVC.

Not tested with gcc, but should be ok.

EDIT: noticed that Ace's build with msvc-10 doesn't seem to have any compile issue, so maybe only msvc-11 and msvc-12 are affected?  Let me know if I should put #ifdef guards around the change.