Looks like it doesn't work with new versions of clang and linux, there are some issues connected with flags and linker.