Make project work with cmake and eclipse