'ldconfig -m %B' must be next after libraries and shouldn't be next after include files because '%B' represents the prefix of previous file. And sort alphabetically.