Clean up CMake library specification

The X11 libraries don't need to be specified when doing dynamic linking
Build GLFW as a shared lib on Travis
dyncom: Move over QADD16/QASX/QSAX/QSUB16
Merge pull request #333 from lioncash/qops

dyncom: Move over QADD16/QASX/QSAX/QSUB16
Merge pull request #275 from yuriks/cmake-clean

Clean up CMake library specification
Rename ObjectPool to HandleTable
Kernel: Replace GetStaticHandleType by HANDLE_TYPE constants
Kernel: New handle manager

This handle manager more closely mirrors the behaviour of the CTR-OS
one. In addition object ref-counts and support for DuplicateHandle have
been added.

Note that support for DuplicateHandle is still experimental, since parts
of the kernel still use Handles internally, which will likely cause
troubles if two different handles to the same object are used to e.g.
wait on a synchronization primitive.