Platform fixes, removal of debug output