generate platform-specific YieldLib