add -Wno-unused-but-set-variable to compile on 12.04