Various userspace Linux compat hacks