fixed a bug in the pa_to_va function. come to find out a translation to pa 0 is ligit, kind of knew that was coming at somepoint. also cleaned up the dbglib a bit and added support for qemu.