removed -static which was resuting in linker errors on Ubuntu