Corrected compile errors in case DB_ENABLE_STATS is defined
https://github.com/RagnarokTales/Hercules/commit/222345170f781b0cc19dfb99e0820098097a1254