Set build flags properly, according to build type

Signed-off-by: Thiago de Barros Lacerda <tbl2@cin.ufpe.br>
temp