replaced simple float arrays with std::vector
replaced -rdynamic (g++) option with -Wl,--export-dynamic (clang)