Use StartNewMessage / EndAndQueueMessage to prevent assert with zero size messages. Closes #478.
Web-sync at 2014-10-04 13:18:00 +0800.
For Travis CI - switch CI build to use OS X build environment.