Update selectors.nim to suport macosx