Windows compatibilty patches (rebased to develop)

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

This is just a template, version does not mean anything, We can evaluate any expression from command line if needed.