Fix for compilation problem and a segmentation faults on Darwin

Two minor changes to enable compilation and fix a segmentation fault on Mac OS X:
* ```strip -s``` doesn't work on Mac OS X so we just use strip by itself
* The default compiler and flags lead to a segmentation fault, using ```clang``` and these flags allow it to work properly.