changed asm_naked_fn_proto to extern "C" fixing compilation with g++

This fixed compilation with g++ for me, I think this is what you meant anyway (`extern` alone on a function is senseless).