@Tacuba: *ouch!*
I'm sure David must have a reason to avoid the preposition, but I would have used "deber de" in both cases.
El cuarto debió de estar muy sucio porque...
Debí de estar loco./Debí de haber estado loco.
...I was taught to differenciate the duty and the supposition this way.