Resolve #50 - Upgrade target framework version to v4.0

* This requires explicitly setting the references to Iesi.Collections, as there
  is also an ISet<T> in System.Collections.Generic.

* The enumeration extension method HasFlag had to be removed, as it collides
  with identical functionality now present in the .NET framework.