modified Makefiles for successful compilation in Ubuntu versions > 11.04