Fixed problem with libraries order