Build-friendly adjustments.

Updated build properties and main method for quick
standalone build.