Merge pull request #454 from kanoi/master bflsc - handle xlink timeouts by having generic IO functions