fix to generate with libs