makefile: Update makefile template to create lib directory