Some spandsp tweaks after studying a klocwork report