Added extern c if cpp