removed redundant insert and added a missing define on mac os x

Removed a redundant insert method definition (this was changed in bitcoin a long time ago, by you). Also there is no MSG_NOSIGNAL on mac os x so I added a define for it.