It does not work with static lights, but you can combine the static lightmap with the shader for dynamic lights. You can see that the texcoords are wrong on the last picture. Thats what happens when the shader is made for flat blocks and you are using shaded blocks, or the other way around.