This video by Wicked Goodies shares a pair of tricks for building stable gingerbread houses, techniques called Sealing & Edging.