Updated to compile against ZNC 1.2

Also silenced a g++ warning