Fix generation of unit testing libs