some fixes + fixed clang build
fix for previous commit
mingw-w64-api: Remove unneeded patch.