Support MinGW compiler

MinGW linker is too strict and wants libraries to be ordered - osmpbf before protobuf before zlib, etc.
Winsock library is also needer for Windows target.