Fix some issues with compiling in debian

fixes #35