added helper function for errno / strerror

added some handy helpers to access errno / errstr.