Correct #import abuse

The use of #import on non-ObjectiveC code is incorrect.  Switch to #include.
Add missing include

Add a stdint.h inclusion for the (type)definition of intptr_t.
Add an include guard for the header