various minor fixes + updates for latest OT.

Signed-off-by: FellowTraveler <F3llowTraveler@gmail.com>
Fixed broken build on Mountain Lion.

Signed-off-by: FellowTraveler <F3llowTraveler@gmail.com>
Merge pull request #84 from FellowTraveler/master

Fixes for broken build on Mountain Lion + other fixes related to calls to the OT API.