Fixed problems when configured with --without-libplot