updated makefile and awk error
updated awk compatibility