Binary building support - and tests for it