Changed of the oder of libraries in link statement to avoid problems reported in ROOT-6855