libc_init_static: fix invalid conversion