fixed build for static libs