Reordering debian packages and correcting some bugs on NetBSD