Switch to TRACE, include stdio.h when debugging for printf

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Buffering was incorrect in Wayland - release_buffer does not mean that serverside buffer has been destroyed

Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
Merge pull request #34 from stskeeps/trace_stdio

Switch to TRACE, include stdio.h when debugging for printf
Merge pull request #36 from stskeeps/wayland_release_buffer2

Buffering was incorrect in Wayland - release_buffer does not mean that s...
Merge pull request #35 from groleo/tidy-fbdev-window

fbdev_window: cleanups
Revert "fbdev_window: cleanups"

This reverts commit e242b1038d17e327bef6dbe27631a719114f18f7.
Merge pull request #37 from stskeeps/revert_fbdev_changes

Revert "fbdev_window: cleanups"
wayland_window: codestyle
wayland_window: cleanups

Signed-off-by: Adrian Negreanu <groleo@gmail.com>
fbdev_window: cleanups

I've used the same idea from wayland_window.cpp, having
the buffers placed in a std::list and marked busy/free via the busy
member.

Fixed the crash which apparently was caused by reference counting but
in fact was dequeueBuffer not calling incRef on the buffer.

v3: remove custom TRACE

v2: changed licensing from lgpl to apache2
    use DEBUG which is enabled bt --enable-debug

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
test_glesv2: run for 100 frames, so we test the destructors too

Signed-off-by: Adrian Negreanu <groleo@gmail.com>