fix for cross compile