compile fix for ffmpeg 1.2

avcodec_init does not exist anymore - avcodec_register_all is enough
only use X11 if desired
changes for building within COVISE

- honour COVISE_USE_CUDA
- install to correct location