fixed typo / added "const" to defines for newer gcc compatibility