Update ubuntu instructions
Fix gcc compile errors in simulator