Remove global from build-static