mescc: Mes C Library: Use mes_open to avoid open trickery.