Update compiler flags with memory optimizations

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