Standardize build on Java 7, and throw originating exception if encountering an error while adding a C# type.