Fix compatibility OSX.