Fixed logic error on pclose, updated errorno and errorstr to include the RPi_ prefix