Fix apex install bugs (#3741)
* Fix apex installation
* Switch install flag from build-opt to global-opt to fix missing cpp_ext
* Try installing with support for newer pip
* Add build packaging
* Update to latest
* Pin to specific commit while pyproject.toml is fixed