automatically compile examples, add bin dir