Build fixes for mingw
Merge branch 'master' of https://github.com/acreloaded/acr