Use detected HAVE_ERROR_H
Remove extra ';' at the end of the file