Switch the build system to makefiles