Fix redefinition of some Win32 API functions

Add a "preamble" file that gets written to sampgdk.c before the rest
of the code and include windows.h from there.