Fixed link build order on Linux
Fixed shadowed arguments