Build problems on Solaris 11

I’m building from source on Solaris 11 (x86), and have found some issues with the build scripts.
For instance, the file
is missing the LIBSOCKET and LIBNSL in the TARGET_LINK_LIBRARIES line.

The same/similar issue also occurs in the following files:
storage/heap/CMakeLists.txt
storage/myisam/CMakeLists.txt

in mysys/CMakeLists.txt, the TARGET_LINK_LIBRARIES on line 71 is split across two lines, and is missing LIBSOCKET.

Once the socket and nsl libraries are added to the build lines, however, percona mysql builds and runs successfully. So if those minor tweaks get resolved, an entire additional platform is added back into easy compilation.
Should there be an OSLIBS that’s set by the top level cmake script, and used in all of the build scripts?