Before you can join any components, such as vertices and edges, you need to combine seperate objects into one object. Under the Polygons menu, choose Combine. Now you should be able to merge vertices.