Added Exceptions.h and fixed compilation on Mac version.