Use uname -s which works everywhere

Use uname -s instead of uname -o, which is not present on some operating systems.

This should be tested on Cygwin.

autoreconf will have to be run. (Ideally, ./configure should be kept out of the repo via .gitignore and only provided in release tarballs.)