use cast_ptr instead of ptr for travis go tip build