fix build script for C examples