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>