Right, had to add nother -D_GNU_SOURCE in makefile. Also some other dep complains about the lack of cmake.