Make header C++ friendly.
Add error logging facility.
Remove generated Makefiles.

Signed-off by: Alan Amaral <alan.amaral@citrix.com>