Use Builder.from_resource (). Fix linking against libm.