handle mingw compilation with -msse2

also fixing some #includes