libbuxton: Fix bug on open

Allocate _BuxtonClient struct instead of _BuxtonClient *. Also fix ugly
code up a little.