If TEA_PLATFORM is windows then TEA_ADD_LIBS uses case-insensitive replace flag which is not available in Darwin version of sed. So it is not possible to cross-compile affected extensions on Darwin machine to Windows host.