Fixed build using Unix makefile generator

Build under XCode still problematic.

To generate and build:
mkdir build
cd build
cmake -D "CMAKE_OSX_ARCHITECTURES:STRING=i386;x86_64" -DWITH_SSE2=off
.. && make