Remove setting of CPPFLAGS:

* CPPFLAGS is no longer supported in scaffold.
Move the setting of global variables until after scaffold include
Test the new set_incdirs attribute
Changes that were missed
Check scaffold variable setting before and after including scaffold.mk