Removed old duplicated ifdef checking for cross-compile