Add basic testing infrastructure using CTest

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
Fix compilation bug

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>