Improve CMake build system to automatically detect SSE, and support 32 bit Windows build