Implement compile as a kattcmd command