http-form-fix for OSX and *BSD