Added -Wno-unused-but-set-variable when building with gcc