Changed compiler flags to work with gcc 4.6