Refactor to use NWGetPageSize
Import strcasecmp from https://gitorious.org/0xdroid/bionic/raw/30a419afc3cdb641e350c7cfde753877675958e0:libc/string/strcasecmp.c (OpenBSD/Bionic)
Fix up headers