VS2010 build: prepare API.

Cherry-picked by veox.

Previous variable 'new' was badly named, but troky's 'n' was too cryptic.
Therefore renamed to 'newsize'.
VS2010 build: ccan/opt

Cherry-picked by veox.