little optimisation, gid is alway 0 or higher
generated libs