Added static libs to g++ linking process.