refactor(builtin/kernel): use standard definition for 'or' and 'and'

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>