lights: cast to correct pointer type

Signed-off-by: Simon Busch <morphis@gravedo.de>
tests: include correct header file for exit method to avoid compiler warning

Signed-off-by: Simon Busch <morphis@gravedo.de>
Merge pull request #1 from morphis/for-upstream/further-fixes

For upstream/further fixes