Fix coverity found errors in flirt.c. Remove confusing defines