Fixed several bugs related to Mac platform

with unsupported OpenCL image formats
Added eclipse stuff to gitignore