Only use -Wno-error=unused-result if the compiler supports it

Yay, gcc.  Or something.