changed compiler flags for compatibility