Add libs for static linking to the .pc
Improve the API header autogen script