Detect platform and implement (bye)

Tests pass: https://travis-ci.org/Grahack/EmuLisp/builds/21891154