@only.<OS> decorator. raise OSError if not supported OS