configure: Add some -Wno-error= flags to ERRORFLAGS

-Wno-error=deprecated-declarations and -Wno-error=unused-function.
Lets mpv compile with --extra-cflags=-Werror with gcc 4.8.1.