make sure we're not working on uninitialized variables, even if we don't care about the actual result.
foundation::Tile *is* copyable.
added missing #include clauses.
silence clang warning.
small linux fixes