Make it work under MinGW