fixes for debian/ubuntu