Allow -warn-error to be disabled by configure

Signed-off-by: David Scott <dave.scott@citrix.com>
Merge pull request #1942 from djs55/warn-error

Allow -warn-error to be disabled by configure