Move extralibs variables using ldl after ldl definition