fixed library directory stuff