Fix some linker problems
this should fix some linker problem with the examples