Add INTERNAL_SYSCALL_DECL, add err argument to INTERNAL_SYSCALL* macros.