Fixed linker flags macro.

The build rule referred to the LD_FLG macro, whereas this macro was
incorrectly defined as LD_OPT. Furthermore, this macro incorrectly
specified the optimistation flag. Both of these issues have now been
fixed.
Merge branch 'develop' into topic-testing
Fixed compilation bugs.

There were several small bugs that resulted in compilation errors and
warnings. These have all been resolved.
Added ./bin/ directory with a hidden ignore file.

The ./bin/ directory is required by the build process. Since git does
not allow empty directories to be committed, we need to add a phony
.ignore file to add the directory.
Merge branch 'topic-testing' into develop