This fixes all current default warnings with GCC7 on Linux. That does not mean the code is anywhere close to clean.
Build options can now be set with configure.