Compile cleanly with -O and -DNDEBUG