Make rb work on mac.