fixed lbrary order in cmake files