Add makefiles for building libcore project