Implement Misc cgame syscalls