Various assorted MXE compile fixes