make sure there is a lib dir