Only enable stack-protector on UNIX-like systems

This adds the -fstack-protector flag to cc only if we're on UNIX.
Merge branch 'fix/mingw-compilation' into next