To run optimized version of Ocaml plugin, do the following manually:

# Compile plugin in ocaml source directory
ocamlopt -output-obj -o /tmp/plasma.o bigarray.cmxa plasma.ml

# Link in builddir/src - change command to fit
/usr/bin/c++   -g   CMakeFiles/plugin-viewer.dir/plugin-viewer.cc.o CMakeFiles/plugin-viewer.dir/demoplugin.cc.o CMakeFiles/plugin-viewer.dir/demolib.cc.o /tmp/plasma.o -o ../plugin-viewer -rdynamic -L/usr/lib64/ocaml -lSDL -lpthread -lSDL_image -lGL -lGLU -ldl -lasmrun -lbigarray -Wl,-rpath,/usr/lib64/ocaml
