use cmake for c99