updated gitignore for cmake builds and xcode
fixed osx search
added flags for debug and release modes and c++11
fixed missing assignment to member variable
added conditional include for opencl headers
fixed incorrect template parameter
corrected include path