Linux mingw cross-compile issues: some winapi functionality not available