fix incorrect length on tracker_register packet
fixed OS X build issues, include necessary OS X frameworks