Applied patch from linux.

Remove duplicated libs.