Implement falloc equivalent in OSX
AppleTLS: Use newer, non-deprecated API in 10.8+
Fix GnuTLS 2.x compatiblity

Closes GH-216