reduce static linking overhead from TLS support by inlining mmap syscall