building with cmake. animation segfaults