Prescribing Gauss curvature of surfaces in 3-dimensional spacetimes Application to the Minkowski problem in the Minkowski space