first step towards a Windows port

This commit adds a bit of MS Windows compatibility, mostly relying on
stubs which will need to be implemented eventually.