Made convenient to change compile options in each example's test script. Corrected bug in CPP binding concerning the use of ruby generator's 'mem_mgt' configuration.