Changes to build on debian