Redo cmake lists for os detecting

edited cmake lists for detecting linux, darwin, and windows