Fix Win32 build

This replaces the old makefiles, and corrects the symbol test
from WIN32 to _WIN32.