A resolution for standard modules of Borcherds