fix make lib errors