Fix build for gnu++11