use c89 instead of gcc
add const to declarations