added dependencies to CMakeList.txt to prevent race-conditions in from source builds