Use libc++ only on apple machines.