Added fix so libraries are copied and loaded correctly on unix platforms