FIX: add setWorkDirectory for C++