Molecular frame photoemission in multiphoton ionization of small molecules induced by linearly and circularly polarized light