fixed compile errors

######### SNIP

    Name: fixed compile errors
    Description: fixed compile errors
    Gist URL:
    Cryptography: no
    Author(s): Self

I hereby declare that I accept to contribute following the openETCS terms of use and the openETCS IP policy.

http://openetcs.org/termsofuse/

https://github.com/openETCS/ecosystem/wiki/IP-Policy
######### SNAP