FDECL(foo, (boolean)) ought to have been using (BOOLEAN_P), but the tiles code isn't including the header which defines that, so change the argument to int.
FDECL(foo, (boolean)) ought to have been using (BOOLEAN_P), but the tiles code isn't including the header which defines that, so change the argument to int.