npwrapper: fix build on 32bit systems