Update build script to product static libraries rather than dynamic