fixed compilation with Snow Leopard, thanks to Lon Baker for providing SSH access to Snow Leopard box