bug fixes and interface for generating makefiles from same buildspec