Add HTML docs packaging, `VERISON` variable and platform-specific LD flags.