Change all uses of WIN32 to _WIN32
Check if we're on OSX before disabling deprecation in le-proxy