remove GRIM compile option and modified the set of flags passed to the compiler