Reacting to System.IO package version change
Port Facebook middleware from Katana.