Fixed installation in Debian/Ubuntu.

Taken from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637904