fix makefile and change to GCC 4.8