This patch fixes bug where mbox's pointer was cast to integer, caused segfault. -Andrew