Refactors Makefile slightly for AMDAPP lib