More emulated fs duping
Added fsflag and cloexec flag accessors, dup fixes