Changed BREE to 1.8.

Signed-off-by: Timo Kinnunen <timo.kinnunen@gmail.com>
Cleaned up a questionable unchecked cast and assignment.

Signed-off-by: Timo Kinnunen <timo.kinnunen@gmail.com>