fix project to build a library properly