Able to build tests for mingw now... but static build flags are all
wrong.