fix usage of extern
const -> static for global constants
assert -> fail_unless!