Build fix for -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast