Fix Makefile to fully resolve issue #10

The problem described in issue #10 was still occurring on Fedora 20 for me. This fix should resolve the issue in a more cross platform way.