Fixed Makefile to compile references
Merge pull request #2 from str4d/fix-make

Fixed Makefile to compile references