aOSX compilation issues (exceptions and limit.h)