Prevent re-opening connections constantly.

(cherry picked from commit f177fea532bca637b4b008db77fdc7c65aa19d72)
Add build management.

(cherry picked from commit 57ea0aaba339c7c25cd598977ac75198eb9572f6)
Missed the libraries-com stuff.

(cherry picked from commit 05489b36cdd489c04ace03ed146b4dfdbce13a5a)
compile fixes.

(cherry picked from commit dd6e70c819c011db6deb73b1eea2f6d09b0dd0b9)
More compile fixes.

(cherry picked from commit f88f8cdae01be917fefadcc759e3d039bbf6098e)
Set to release configuration.