remove redundant linux def checks