libreddit: Allow header to be included with C++ code

This patch allowed the reddit.h header to be used with C++ code, via the
addition of extern "C" {} around the code if the __cplusplus flag is
set.