make minimal platform check for darwin compatibility