fix flags for c++, sometimes lstdc++ link is not implicit
Revert "fix flags for c++, sometimes lstdc++ link is not implicit"

This reverts commit fb77c22c9319b16443e3035d885b9b87643a3ed7.
new attempt
Misc cleanups: remove unnecessary casts, use unsigned long for addresses.
More updates in next release goals.