[DEV] add extra compilation flags & correct warning