Texture2DLod and friends isn't available everywhere.
Add a "portable" version to the standard library header so, in GPUs that don't have them, either a gradient-base version is used (or perhaps biasing which is standard in GLSL).
Anonymous
Useful link:
http://www.opengl.org/registry/specs/ARB/shader_texture_lod.txt