Change Makefile to be more generic on GCC detection