updated some flags for gcc compiler.