Added compilation flag, fixed GCC warnings