flags corrected for gcc-4.2.1