Fix crash in SP when enabling EAX in Linux/Mac

This is the same fix as in 644e5ca for MP.