fixed system inheritance and dll locating.  Compiles and runs (indefinately)