Fix samples compilation on linux
Fix linux template
Merge pull request #1179 from joshuastray/fix-cmake

Fix cmake