Update core/Makefile

Added code to build Kernel Modules