Fix a bug where DMA frames were getting lost.
Add early support for getnstimeofday.