removed duplicate definitions

while trying to build with build-server.py using centos 6.5 and  gcc 4.4.7 I got duplicate definitions errors. 
This pull-request fixes this behavior.