Write generated binaries to the bin/ folder.

This prevents linker error in Mac OS X because the filesystem is typically
case-insensitive.