change package installation order

fit for spdylay upgrade