Fix build on Linux

Porting the original Debian patch from http://sourceforge.net/p/launchy/patches/32/
Merge pull request #5 from isanketh/master

Fix build on Linux