added msgq but coudl not compile under mac