Avoiding gcc compiler flags on non-gcc compiler