Solved it. After telling Xcode DYLD_FALLBACK_LIBRARY_PATH and the folders where to find the source code it worked eventually. Could be that it was also important to leave the source files in the build directory where "port -k install" was my friend.