Fixed makefile so that it up to standard with the rpath flag and ldd command is workin