Optimal capital structure and the impact of time-to-build