cmake support added, compilation with gcc successful