Experimental macosx suport for hcapture.c