Build optimizations

Signed-off-by: kecinzer <kecinzer@gmail.com>