Rework build process to same as used in jBinary, apply needed code style fixes.