(maint) Reorganize the vendor directory

Move cmake code to a dedicated `cmake` folder, and vendor our vendor libraries more directly, rather than using ExternalProject.