fix foreign label literals, support function pointers
primop fixes