Core/Build: Fix linking and sooo many compile warnings