Remove unused reference directory copy.

Signed-off-by: Rob Caelers <robc@krandor.org>
Use compiler specific cxxflags.

Signed-off-by: Rob Caelers <robc@krandor.org>