Added Mac build support.