Native syscall guards

Fixes some segmentation faults.. not all of them though.