mac: Only set stdin when needed.
Prepare 0.5.2 release