Improve autoconf config

Adds a few changes to the build system of scrm

* Activates link time optimization if a recent version of gcc is used, which gives ~10% performance
* Changes the default optimization level from `O2` to `O3`
* Activate warnings by default