Construction of the forward pixel detector