Fix compile error with debug not enabled in libxml

Due to syntax errors in code that is used if debug is not enabled in libxml,
the gem could not be installed on Linux.