Import ugly unmarshaling functions from the right place.