workaround clang -O4 LTO+gold problems, invalid ar. use ranlib

link static without libp*.a if failing with gold,
harmonize DBG_G
move PN_OBJECT_HEADER earlier to be used in PN_FLEX
define PNAsm directly to help doc generators (htags)