Fix compilation issues for error.cpp under the GTK target