remove an erroneous switch statement, employ an ifdef to determine if uname is Linux or Darwin, and autodetect cpus