as @gonuke suggested, adding a preprocessor directive was the right way to go. tested with coin-2.3 on insam