MAJOR FIX: linking SMILE library