Add -O2 to compile flags, remove -g3. Works with gcc 4.8.2.