added nn_geterrno function to the global namespace to return last EP error, the use cases are: connection error, bind error