compress: python2 compatibility

Python 2 cannot serialise class methods (apparently) and so lift
_compress_depth_frame into the module. Allow the compressor pool to use
one worker per physical CPU although we may want to tweak this later.