Fix to link with libraries from build directory