On Brownian Motion Approximation of Compound Poisson Processes with Applications to Threshold Models