[core] Updated makefile for GCC compilation