some work on platform independent serial support
make bst backend independent, add rs232 backend