moved linker flag to definitions