changed CXXFLAGS from -std=c++0x to -std=c++11
fix for fake device
cosmetics
fixed template specialization issue