set PAGESIZE more portably

this commit should replace https://github.com/zfsonlinux/spl/pull/360 on the master branch, thanks to Alec J. Salazar for the template.