Adding missing compiler flags and test checks.