Add some missing defines that are already present in the cmake side.
This is to help fix mingw build.