cmake: add -Wl,--no-as-needed to npwrapper

also remove this symbol resolve flag as we don't need it anymore