Algebraic order and the BKT transition in an exciton-polariton gas