Update all interface files to use #define

Move all ifndefs and defines above the imports, so that if the file has
already been included it will not pull in dependencies twice.

Add ifndefs and defines to files lacking them.