Add macros to libxdma.h

The first macros protect against double includes and the second allows
for easy include and use within a c++ program.