Fixed library name and path issues for darwin hosts.