add getPlatform to syscalls