switched from autotools to cmake