Fix various issues for all targets

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>