Revise new line handling for Mono compatibility
Update test helpers to exercise Linux/Mac line endings
Add basic handling of external functions
Merge pull request #109 from dungpa/mono

Fix #107 and #108