Ported MSG_PEEK support to develop branch.