Exception class fixes, added warnings to the build script