Fixes build issues with MinGW VS2012 config