Add -Wredundant-decls -fno-strict-aliasing -Wunused-function -Wunused-value -Wunused-variable to compile flags