fixed lots of stuff in debian build system