patch to 9573
debug.h ... struct coord_ref was falsely forward-declared as class.
sqldbm.h ... defined SQLITE_INT64_TYPE as int, and no comments why, i defined it as int64_t.
tilemcache.h ... in C++ operator & has lower priority than operator ==; an if() argument seemed did not take it into account and missed parentheses.
Applied; thanks (except for the sqldbm.h changes, as they affect multiple platforms that I have no way of testing). Leaving open in case someone can test those changes.