macOS: Replace qtsound by avfoundation based module
qtsound does not compile on 10.13 anymore and this API was largely removed. One should update to avfoundation: https://developer.apple.com/library/archive/technotes/tn2300/_index.html
Note that the macUI currently still uses qtsound, this must be adapted as well.