Enabled building Release version

Removed build errors from Release version.
Added #warning TODO