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).