add missing extern "C" directives
add functionality to padic_polyxx and test it