some missing defines
Merge pull request #1459 from raymix/master

some missing defines