cmake: cleaning and set RPATH for binding