Added dummy Debug and Release link dirs on OSX to silence an Xcode warning
Fixed clang analyzer warnings