build fix
generate the export headers
drop support for static build, cleanup of buildsystem