[lib/objc] fix NSMenuItem creation. Remove osx2 sample.