Qt: Fix some qmake replace commands that work differently on different versions of qmake. Use SDL Audio when available. Fix a bug. Qt4+Qt5 tested working perfectly on Arch Linux.