fix: compile with optimizations

Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>