fix memcpy warning
use separate mutex for condition variable in presentation_thread
style fixes, mostly fit into 100 character per line limit