fixed linker error for gcc 4.8.1 under linux