Changes for MingGW

- Fixed compilation on Windows using MinGW
- Only enable SSE optimizations if supported by compiler.