Wrap C++-incompatible statements with #ifndef __cplusplus
Mark gr 2dsline functions static