fixed dependencies and cmake for reuse