Tweaks for de0_nano with expansion
Added ifdef guards around expansion stuff