#include <algorithm>
#include <functional>
#include <vector>
+#include <cstring>
#include <osg/Math>
} catch (const sg_throwable& t) {
SG_LOG(SG_GENERAL, SG_ALERT, "Error loading " << path << ":\n "
<< t.getFormattedMessage() << t.getOrigin());
+ delete instance;
return;
}