Revert "Fix compiling mydns module without gmysql module"

This reverts commit c9df4fb94c49d73c06ea99223ce9ed37cbb9498b.