Fix QML compilation and loading on ARM

These commits fix QML compilation and loading on ARM. Includes ARM linking fixes.