cmake: Split up bin and lib subdirectories

This makes additions and changes to components less likely
to cause conflicts.