Fix <cstdlib> include issue.
where trying to use rand().
Merge pull request #12 from ryanmjacobs/wave_h_include_fix

Fix <cstdlib> include issue.
Added case for window resize
Don't add controls if we've already added them.