Fixing ridiculous C++ linking nonsense