update for new cocktail api

This change is necessary to build with the new version of cocktail on haxelib