[packaging] add debug packages and use lto
fix build depends
fix build depends once more
we seem to need GLES2, check for it
Merge pull request #3 from wsnipex/macros

Debug packages and build fixes