Make external library code work