Fix -Wunused compiler warnings