Dynamical structure factor of a one-dimensional harmonic liquid: Comparison of different approximation methods