simplify target setup, fixes also bug that CC/CFLAGS were not passed