Several more small bugfixes, still no audio output.