WIP: fix compile issues with ANTsR