libc: add support for sysconf(_SC_PAGESIZE)

Fixes #1029.