Windows compatibilty patches (rebased to develop)

copy of https://github.com/DennisOSRM/Project-OSRM/pull/979
with `develop` as  base branch.

Why the reordering? Usually, we would like have the following blocks

1. local includes
2. library includes
3. C-style includes
4. STL includes

and each block sorted lexicographically.