Fix warnings that show up on Travis builds

It'd be nice to not see the same few errors in the build logs. The only thing left is the whole PLUGINFACTORY C-linkage issue, which OCCT should fix in 6.8.0.