Compression and transfer molding techniques