Fix decltype error in g++-4.6