Added some #ifndefs to ensure the header works with the kernel correctly.