cleanup in the build script

- removed a deprecated task in the build script (`compile`)
- moved a private method further down in the file

TBR, @umop