fix builds with ill-specified compiler options