fix type on cmake, remove duplicated line
fix linux/gcc compilation