Fix compiler flag for dynamic require errors