Fixed wrong build configuration and replaced define with const

Following changes:
— Fixed wrong build configuration
— Replaced define with const