Removed c leftovers, #ifdedf __cplusplus and extern c for name mangling