cleanup OS detection

- the wrong variable was set for OpenBSD and Solaris
Merge pull request #1067 from dawgfoto/cleanupMakefile

cleanup OS detection