cleanup OS detection

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

cleanup OS detection