Libraries should appear at the end

Change-Id: If6bf1c1b7db594cb15dfaa4505a8590565fb69a1
Reviewed-on: http://review.couchbase.org/25864
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>