Changed to using .inl for exceptions on mac os x.