fixes building on linux
fixes test on linux
fixes example building & dynamic linking on linux