fix broken static library generation
update to new buildscripts