fixxed frame counter. Added extra build script for JavaCV.