moving defines around

making the external dll return code defines to another header to be more
global