A fix for flattened ruby libraries on export