fixed some linker errors.
we have a working project for 32 and 64 bit.
fix a linking error with tests. Otherwise we have a name-mangling problem.