merged some patches from debian and change Makefile to fix link error on Slackware