Adds missing require statements.