Subcritical and supercritical Hopf bifurcation in a time-to-build growth model