work around linux bug in mprotect