import and adopt flexc++