ENH: Fix for Makefile for samples, allows us to build C++ samples automatically
BUG: fixed for namespace error due to scripting language support