Add librt to link libraries

I don't know why I did it
Add rt-library
Minor changes for debugging
Finally working packing and unpacking functions in glsl (I hope)