fix compilation and DMA in OS X