Fixed OS if-defs for set_cpu call