added code to compile included files and core files