Small fixes for library dependency writing