Make user defined key work correctly

A user defined key will lead to the following error:

    error: token "{" is not valid in preprocessor expressions

Using an #ifdef instead of an #if works perfectly. A key can be created using a 

    #define NONCORESEC_CONF_KEY { 0x01, 0x02...}

for example in contiki-config.h