added couple of debug to stderr; added couple of NULL sanity checks; added semaphore to jpegencoder2 just for testing; disabled for loops for aquiring buffers for encoders; -> overall debug stuff for testing