Modified proto-compile script so it works without modification on both FreeBSD and Linux.