Fixed build scripts so that both device and simulator run.