syscalls: workaround for bug in GCC 4.7 and below