Fixed static franework build script