Rename java libs on macos to dylib extension.