Added logging support to OSX if GCC >= 4.8.2