Fixed bug causing builds to not link properly