building static regen library because linking of shared and static libs not allowed. all shared libs and static libs are linked to the regen lib.