Package compiles successfully. Test script test.pl exits with non-zero return code when terminated with 'q' or 'Esc' keys. The scripts exits normally when clicking with mouse at 'Exit' icon. Patch with fix is attached.
$ PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl; echo $? .... Hold down arrow keys to rotate, 'r' to reverse, 's' to stop. Page up/down will move cube away from/towards camera. Use first letter of shown display mode settings to alter. Press 'g' to toggle fullscreen mode (not supported on all platforms). Press 'c' to capture/save a RGBA targa file. 'q' or [Esc] to quit; OpenGL window must have focus for input. pure virtual method called terminate called without an active exception Aborted (core dumped) 134