improved code style.
updated linux build.