copied samples from the main project branch.
samples tested under windows x64 and osx
Merge origin/master