Fixes build script. Removes deprecated select.