Fix build on older GCC after including err.h