fixed linker problems (currently not portable due to absolute paths etc);