Make sure library directories we set take precedence over $(libdir).

This is a workaround for Ruby bug #9760 which will be fixed in Ruby 2.2.
Update changelogs.