Reduce number of compiler warnings

This is an external lib. Maybe its better to fix this in the shape lib directly?