makedef: Port to Bourne Shell

Perl is an unnecessary dependency. This is the first step towards
inclusion in the Libav source tree.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Output error messages to stderr instead of stdout (which is normally redirected to a file)