Only add warning and std flags if supported by compiler (#144) This fixes errors like those reported in #143 on Solaris (and probably other platforms where gcc is not the native compiler): c99: -W option with unknown program all This only fixes it for cmake, but presumably similar checks could be added for autoconf as well.