Few fixes to get firmata-maper working on Linux

Hi, I had to do this little changes to get this code running in my linux box.