Test with stricter warnings, fix some warnings