Silence unused variables warnings
Define WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH if not defined
Cleanup portability/compatibility layer

* Removes mingw-compat.h
* Cleans up separation of compiler/platform idiosyncrasies
* Unifies mingw/msvc stat structures and functions
* (Tries to) hide more compiler specific implementation details (even in our internal API)
Consistently use p_snprintf
Use p_snprintf also in tests
Move p_realpath logic to realpath.c
Introduce some consistency in definition/declaration ordering