build with lib dirs