Previously I linked in non free libraries by using -I and -L, I found there is a --use-non-free switch which is intended to use for htis purpose. Changed makefile to do this instead