fix checking for UNIX with preproc directives