Add uninstall targets, separate lib targets from bin targets, fix build system