Fix for  "a class-key must be used when declaring a friend" on make using Oracle Spatial

fixes "a class-key must be used when declaring a friend" error on make