Delay program validation until Texture units are asigned.

Hopefully this fixes #459. Also see #458.
Merge pull request #467 from almarklein/delay-program-validation

Delay program validation until Texture units are asigned.