Fix other warning on amd64 and use rpath on unix
Better material management for exporter