Fix to include in c++ projects

Added "extern "C" {" before function declarations