Refactor to nonrecursive makefile

Remove recursive makefiles, correct example header references.