[relate] Fix GCC 4.4 and 4.5 compilation errors

Explicitly define namespace for the call relate::set<> in implementations of relate().