change top level makefile to compile lib locking