Add flags to fix warnings/errors