Fix ScopedGuard crash on GCC 4.7.3 (Bug#1189470)