Only build tests if --enable-tests is passed.
Enable more warnings.