Enable msse2 and mmx optimizations for release build

We are also now setting the debug and release flags for the project
outside of the platform specific flag checks, as said flags apply
regardless of platform.