Fixed support for Ubuntu builds and deb creation