update compiler flags for r3