Add possibly(?) missing include in Polygon.cpp. Fix MinGW overloading issues in MathFuncTests.