libaudio: Various fixes/updates