Allow -warn-error to be disabled by configure

Signed-off-by: David Scott <dave.scott@citrix.com>