Issue #861. configure option to disable warnings.

Added an option --disable-warning-unused that hides compiler warnings about unused variables, parameters and functions. -Wunused-but-set-parameter is explicitly enabled because it may indicate more serious error. The option is not available when HOST_CC is defined.