Make command line project export working again
Fix some memory access issues
Merge pull request #1513 from DanWin/cmd

Make command line project export working again