The file was moved and the require path relative
free is in stdlib.h we need to include it
With some modifications to libfreefare-pcsc and the last 3 commits here we run under ubuntu