Added SSE2 #ifdefs to prevent breakage on PPC and other architectures

This has been tested to work on Mac GCC, which should work the same as Linux GCC (but has not actually been tested). Also tested in Visual Studio.