Update Makefile

Edited makefile to make it working with new software updates.