hack to support old Linux platfoems (pre libc-2.6)