Move more syscall function into their own impl.

Windows is stupid