Add include guard and retrieve PAGE_SIZE_4K definition from libutils
Use memcpy to assign to errno to avoid a pointer aliasing violation