add ifdef __cplusplus to wrapper header file

Small change to the header file to detect if c or c++ compiler. Makes it easier for me to write xgboost wrappers for Golang.