updated compiler flags for compatibility with gcc 4.7 and older
removed unnecessary button