Add macOS support in compile_pkgs script
I've received this as feedback. There are two issues that prevent people on Macs build packages:
- shebang, most probably we should use
#!/usr/bin/env bash
- https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux
It would be nice to fix it.