Fixed undefined reference compile bug (static libs where included out of order)