change defvar to defconst in mac-os windows-os linux-os