Correctly allocate memory for linker arguments
Correctly allocate memory for linker arguments

This was original brought up by @saolsen in PR #2694. This is a cleaned
up version of that PR based on feedback from @jemc.

Theodus/ponyc,kulibali/ponyc,jemc/ponyc,kulibali/ponyc,CausalityLtd/ponyc,Theodus/ponyc,kulibali/ponyc,dipinhora/ponyc,cquinn/ponyc,ponylang/ponyc,Theodus/ponyc,ponylang/ponyc,Theodus/ponyc,CausalityLtd/ponyc,Theodus/ponyc,sgebbie/ponyc,dipinhora/ponyc,cquinn/ponyc,CausalityLtd/ponyc,ponylang/ponyc,sgebbie/ponyc,dipinhora/ponyc,sgebbie/ponyc,cquinn/ponyc,cquinn/ponyc,jemc/ponyc,sgebbie/ponyc,jemc/ponyc,kulibali/ponyc,sgebbie/ponyc