fixing constant statment nonlinearity and linking in libraries
more fixes to constant linking