Atmel Studio would not include the correct config.h file when include <Config.h> was used, even with "./" added to the search path.  A workaround is to use the appropriate include type depending upon the type of build.