non static debian build fixes, thanks Michael Braunoeder