Fixed examples build error (rake) 

In examples/, build directory created if it doesn't exist. This fixes a gcc "no such file or directory" error when running rake