Krylov Subspace Spectral Methods with Non-homogenous Boundary Conditions