make the library less dependent on the mbed.h header

Now, only UARTService.h depends on the mbed library. We can compile the library with the makefile - https://gist.github.com/xiongyihui/0c82af0c4555c11df226