fix warnings on platforms where mqd_t != int