copy oldrecstatus to let operator= match the copy constructor (cppcheck)
remove left over variable from copying the unix implementation (cppcheck)