Fixed order of commands in cmake; now linking against our libraries first.