Misc changes

* removed some @
* buffer the written output
* some optimizations

This change improves time to scan all of GTK and GStreamer from 45s to 3s.
Fix build