Added some compiler optimizations to reduce image size by a lot