Changes for Linux compilation, also HTTP register bug fix
Added library search path for linux