Fixing clang error caused by taking address of temp

See -Waddress-of-temporary
Converting string to c_str to pass to printf without error
Fixing error caused by taking reference of temp
Adding acmp to makefile