compiler flags fixes for ARM platforms