Properly order args for shared linking