removed extern c cause it was breaking on gentoo