fix unused declaration/definition warnings from GCC 4.9