Hotfix: nightly warnings

Adding back a flag when building demos, fixing other warnings with commenting out and casts.