use -O3 for release build

switch to compiler flag -O3, because Clang fails to compile when using -O4