inline global constants. fixes #3678