Fix fundamental porting errors, minified