bedops: improve build process

Fixed optimization flags, removed unused links to libxml2 and
OpenGL libraries, other fixes

Closes #726.