Delay program validation until Texture units are asigned.

Hopefully this fixes #459. Also see #458.

Ping @izaid