Update 20140927

Fixed:
- *tmp double free;
- Using ast.h to simplify the head files