fix all compile time errors except two that are related to assembly versioning