Add support to compile under MinGW/Windows, fixes #5