Engineering glycoproteins for use as pharmaceuticals