cmake: IMPORT, EXPORT and RPATH improvements