fix issue on building examples