Fix sign compare and unknown pragmas warnings