hammer.git: provide native script helpers

Provide helpers to construct native build scripts. This should help to
eliminate some boilerplate code and error-prone copy pasting.