update Makefile  to fix RM
update .gitignore
Loki support

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