Loki support

with 1 warning: comparison of distinct pointer types lacks a cast