build fixes + example