Makefile: Make some adjustments, credits to @barome for some hints in the right direction.
update buildscript