Fix building under MSVC
Fix building with MinGW
Make default User-agent follow RFC 2616
Merge remote-tracking branch 'minetest/master'