objc: fix struct_test.go to not depend on AppKit.

This is important because attempting to initialize
a NSWindow on Mavericks will fail with an internal
inconsistency exception.

Using NSValue is cleaner because we can avoid the
AppKit dependency in the objc package itself, so
we'll take it!