Trivial patches to facilitate compilation under MSVC
Added missing include guards for configured headers
More configurable c flags