Add extern to all function defns