updated makefile and fixed renameat2 issue