Compatibility with Julia 0.3 (0.3.0-rc1).

This pull request is for a set of changes to allow SimJulia (and tests/examples) to be used with Julia 0.3 (0.3.0-rc1).

Thanks to Aaron Cleaver and Phill Pettit.