Removed using a lambda function to build on MacOS X 10.7.5.
Fixed shader code due to compilation errors of AMD Radeon HD 6630M on MacOS X 10.7.5.